<div class="login-box">
    <div class="login-logo">
        <a v-link="{path:'/'}"><b>良晋</b>工作流平台</a>
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">登录界面</p>
        <div v-show="result" class="alert alert-dismissible" :class="[ result.ok? 'alert-success' : 'alert-danger']">
            <button @click="resetResult" type="button" class="close" aria-hidden="true">&times;</button>
            <h4><i class="icon fa" :class="[ result.ok? 'fa-check' : 'fa-ban']"></i> {{ result.error }}!</h4>
        </div>
        <validator name="loginValidation">
            <form novalidate>
                <div class="form-group has-feedback">
                    <input v-model="username" type="text" class="form-control" placeholder="用户名">
                    <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                </div>
                <div class="form-group has-feedback">
                    <input v-model="password" type="password" class="form-control" placeholder="密码">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
                <div class="row">
                    <div class="col-xs-8">
                        <div class="checkbox icheck">
                            <label>
                                <input type="checkbox" v-model="remember" v-bind:true-value="true" v-bind:false-value="false"> 记住我一周
                            </label>
                        </div>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-4">
                        <button @click="submit" type="button" class="btn btn-primary btn-block btn-flat">登录</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>
        </validator>
        <!-- /.social-auth-links -->

        <a href="#">忘记密码</a><br>
    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->